home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap15 / dun15_3.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  1.8 KB  |  59 lines

  1. <HTML>
  2. <HEAD>
  3.   <TITLE>Exposing Page Elements in IE4</TITLE>
  4. </HEAD>
  5.  
  6. <BODY BGCOLOR=white>
  7.   <BLOCKQUOTE>
  8.  
  9.   <IMG NAME=arrow SRC="arrow.gif" ALIGN=left>
  10.  
  11.   <DIV ID=banner STYLE="position: absolute; left: 72; top: 15;">
  12.     <FONT FACE="Arial, Helvetica" SIZE=+2>
  13.         Exposing Page Elements in IE4
  14.     </FONT>
  15.   </DIV>
  16.  
  17.   <BR><BR>
  18.   <P>The <TT>DIV</TT> element is reflected as both
  19.   <TT>document.all['banner']</TT> and <TT>document.all.banner</TT> in
  20.   IE4. Its reflected attributes include:</P>
  21.  
  22.   <BLOCKQUOTE>
  23.   <SCRIPT>
  24.     document.writeln("<B>tagName:</B> " + document.all['banner'].tagName +
  25.                      "<BR>");
  26.     document.writeln("<B>id:</B> " + document.all.banner.id + "<BR>");
  27.   </SCRIPT>
  28.   </BLOCKQUOTE>
  29.  
  30.   <P>The <TT>IMG</TT> element is reflected as <TT>document.arrow</TT>,
  31.   <TT>document.all.arrow</TT>, <TT>document.all['arrow']</TT> and
  32.   <TT>document.images['arrow']</TT> in IE4. Its reflected attributes
  33.   include:</P>
  34.  
  35.   <BLOCKQUOTE>
  36.   <SCRIPT>
  37.      document.writeln("<B>tagName:</B> " + document.all['arrow'].tagName +
  38.                       "<BR>");
  39.      document.writeln("<B>name:</B> " + document.images['arrow'].name +
  40.                       "<BR>");
  41.      document.writeln("<B>src:</B> " + document.all.arrow.src + "<BR>");
  42.   </SCRIPT>
  43.   </BLOCKQUOTE>
  44.  
  45.   <P>The <TT>FONT</TT> element is reflected as <TT>document.all[7]</TT>
  46.   in IE4. Its reflected attributes include:</P>
  47.  
  48.   <BLOCKQUOTE>
  49.   <SCRIPT>
  50.     document.writeln("<B>tagName:</B> " + document.all[7].tagName + "<BR>");
  51.     document.writeln("<B>size:</B> " + document.all[7].size + "<BR>");
  52.     document.writeln("<B>face:</B> " + document.all[7].face + "<BR>");
  53.   </SCRIPT>
  54.   </BLOCKQUOTE>
  55.  
  56.   </BLOCKQUOTE>
  57. </BODY>
  58. </HTML>
  59.